package visitor.car;

public class CarElementDoVisitor implements CarElementVistor {

	@Override
	public void vist(Wheel wheel) {
		System.out.println("Kicking my " + wheel.getName() + " wheel");
	}

	@Override
	public void vist(Engine engine) {
		System.out.println("Starting my engine");
	}

	@Override
	public void vist(Body body) {
		System.out.println("Starting my body");
	}

	@Override
	public void vist(Car car) {
		System.out.println("Starting my car");
	}

}
